$wixDirectoryXml = $args[0] 
$wixTemplate = $args[1]

$wixDirectoryStructure = get-content $wixDirectoryXml
$toreplace = get-content $wixTemplate 
$toreplace = $toreplace -replace "<!--%%FILES%%-->", $wixDirectoryStructure
$toreplace | set-content $wixTemplate